PROJECT(recaptchafetcher)
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR}
					${CMAKE_SOURCE_DIR}/captchafetchers)

SET(recaptchafetcher_sources
	recaptchafetcher.cpp)

SET(recaptchafetcher_headers
	recaptchafetcher_impl.h
	recaptchafetcher.h)

QT4_WRAP_CPP(recaptchafetcher_moc ${recaptchafetcher_headers})

ADD_LIBRARY(recaptchafetcher MODULE ${recaptchafetcher_sources} ${recaptchafetcher_moc})
TARGET_LINK_LIBRARIES(recaptchafetcher ${QT_LIBRARIES} wm)
SET_TARGET_PROPERTIES(recaptchafetcher PROPERTIES LIBRARY_OUTPUT_DIRECTORY ..)

INSTALL(TARGETS recaptchafetcher LIBRARY DESTINATION ${LIBDIR}/plugins/captchafetchers)

